<h2> <?php echo Yum::t('Registration'); ?> </h2>

<?php $this->breadcrumbs = array(Yum::t('Registration')); ?>

<div class="form">
    <div class="line"></div>
    <div class="annotation">

<p>
<?php
echo Yum::t(
		'(Registration form) Registration is need because'); ?>
</p>
    </div>
    <div class="line"></div>
<?php $activeform = $this->beginWidget('CActiveForm', array(
			'id'=>'registration-form',
			'enableAjaxValidation'=>true,
			'enableClientValidation'=>true,
			'focus'=>array($form,'firstname'),
			));
?>

<?php echo Yum::requiredFieldNote(); ?>
    <?php echo CHtml::errorSummary(array($form, $profile)); ?>

    <div class="row"> <?php
        echo $activeform->labelEx($profile,'lastname');
        echo $activeform->textField($profile,'lastname');
        ?> </div>

    <div class="row"> <?php
echo $activeform->labelEx($profile,'firstname');
echo $activeform->textField($profile,'firstname');
?> </div>


    <div class="row"> <?php
echo $activeform->labelEx($profile,'email');
echo $activeform->textField($profile,'email');
?> </div>
    <div class="row"> <div class="agreement"><?php
echo $activeform->checkBox($profile,'agreement');
echo CHtml::label(Yum::t('Agreement'),'YumProfile_agreement');
echo CHtml::label('&nbsp;','YumProfile_agreement');
echo CHtml::link(Yum::t("agreement name"),
			Yum::module('registration')->agreementUrl);
echo CHtml::label('&nbsp;','YumProfile_agreement');
echo CHtml::label(Yum::t('agreement2'),'YumProfile_agreement');
?> </div></div>

<?php if(extension_loaded('gd')
			&& Yum::module('registration')->enableCaptcha): ?>
	<div class="row center">
        <div class="center_child">
		<?php /*echo CHtml::activeLabelEx($form,'verifyCode'); */?>

		<div>
		<?php $this->widget('CCaptcha'); ?>
		<?php echo CHtml::activeTextField($form,'verifyCode',array('style'=>'margin-left: 310px;')); ?>
		</div>
		<p class="hint">
		<?php echo Yum::t('Please enter the letters as they are shown in the image above.'); ?>
		<br/><?php echo Yum::t('Letters are not case-sensitive.'); ?></p>
        </div>
	</div>
	<?php endif; ?>

	<div class="row center">
        <div class="button" style="float: none;">
                    <?php echo CHtml::divAsLink(Yum::t("registration"),
			'javascript:document.forms["registration-form"].submit();','','','');?>

                </div>
        <div class="center_child">
        <?php echo CHtml::link(Yum::t("Help in registration"),
			Yum::module('registration')->helpUrl); ?>
            </div>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
